home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-08-22 | 2.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 06 4d 6f 64 75 6c 65 0f | 44 72 61 67 49 6e 57 6e |.Module.|DragInWn|
|00000010| 64 4d 6f 64 75 6c 65 12 | 32 be 0c 9f 0b 07 00 0f |dModule.|2.......|
|00000020| 44 72 61 67 49 6e 57 6e | 64 4d 6f 64 75 6c 65 1c |DragInWn|dModule.|
|00000030| 00 00 01 1e 44 72 61 67 | 42 6f 72 64 65 72 54 68 |....Drag|BorderTh|
|00000040| 69 63 6b 6e 65 73 73 20 | 61 73 20 69 6e 74 65 67 |ickness |as integ|
|00000050| 65 72 00 01 0c 44 72 61 | 67 49 6e 57 69 6e 64 6f |er...Dra|gInWindo|
|00000060| 77 be 01 52 65 63 74 20 | 61 73 20 72 65 63 74 43 |w..Rect |as rectC|
|00000070| 6f 6e 74 72 6f 6c 2c 20 | 4c 69 6d 69 74 4c 65 66 |ontrol, |LimitLef|
|00000080| 74 20 61 73 20 69 6e 74 | 65 67 65 72 2c 20 4c 69 |t as int|eger, Li|
|00000090| 6d 69 74 54 6f 70 20 61 | 73 20 69 6e 74 65 67 65 |mitTop a|s intege|
|000000a0| 72 2c 20 4c 69 6d 69 74 | 52 69 67 68 74 20 61 73 |r, Limit|Right as|
|000000b0| 20 69 6e 74 65 67 65 72 | 2c 20 4c 69 6d 69 74 42 | integer|, LimitB|
|000000c0| 6f 74 74 6f 6d 20 61 73 | 20 69 6e 74 65 67 65 72 |ottom as| integer|
|000000d0| 2c 20 41 78 69 73 20 61 | 73 20 69 6e 74 65 67 65 |, Axis a|s intege|
|000000e0| 72 00 00 19 00 19 00 37 | 90 02 53 75 62 20 44 72 |r......7|..Sub Dr|
|000000f0| 61 67 49 6e 57 69 6e 64 | 6f 77 28 52 65 63 74 20 |agInWind|ow(Rect |
|00000100| 61 73 20 72 65 63 74 43 | 6f 6e 74 72 6f 6c 2c 20 |as rectC|ontrol, |
|00000110| 4c 69 6d 69 74 4c 65 66 | 74 20 61 73 20 69 6e 74 |LimitLef|t as int|
|00000120| 65 67 65 72 2c 20 4c 69 | 6d 69 74 54 6f 70 20 61 |eger, Li|mitTop a|
|00000130| 73 20 69 6e 74 65 67 65 | 72 2c 20 4c 69 6d 69 74 |s intege|r, Limit|
|00000140| 52 69 67 68 74 20 61 73 | 20 69 6e 74 65 67 65 72 |Right as| integer|
|00000150| 2c 20 4c 69 6d 69 74 42 | 6f 74 74 6f 6d 20 61 73 |, LimitB|ottom as|
|00000160| 20 69 6e 74 65 67 65 72 | 2c 20 41 78 69 73 20 61 | integer|, Axis a|
|00000170| 73 20 69 6e 74 65 67 65 | 72 29 b6 02 44 65 63 6c |s intege|r)..Decl|
|00000180| 61 72 65 20 46 75 6e 63 | 74 69 6f 6e 20 44 72 61 |are Func|tion Dra|
|00000190| 67 47 72 61 79 52 67 6e | 20 4c 69 62 20 22 49 6e |gGrayRgn| Lib "In|
|000001a0| 74 65 72 66 61 63 65 4c | 69 62 22 20 28 72 20 61 |terfaceL|ib" (r a|
|000001b0| 73 20 69 6e 74 65 67 65 | 72 2c 20 73 74 61 72 74 |s intege|r, start|
|000001c0| 20 61 73 20 49 6e 74 65 | 67 65 72 2c 20 6c 69 6d | as Inte|ger, lim|
|000001d0| 69 74 52 65 63 74 20 61 | 73 20 70 74 72 2c 20 73 |itRect a|s ptr, s|
|000001e0| 6c 6f 70 52 65 63 74 20 | 61 73 20 70 74 72 2c 20 |lopRect |as ptr, |
|000001f0| 61 78 69 73 20 61 73 20 | 53 68 6f 72 74 2c 20 61 |axis as |Short, a|
|00000200| 63 74 69 6f 6e 50 72 6f | 63 20 61 73 20 49 6e 74 |ctionPro|c as Int|
|00000210| 65 67 65 72 29 20 61 73 | 20 49 6e 74 65 67 65 72 |eger) as| Integer|
|00000220| 20 49 6e 6c 69 6e 65 36 | 38 4b 28 22 41 39 30 35 | Inline6|8K("A905|
|00000230| 22 29 00 39 64 69 6d 20 | 73 74 61 72 74 2c 20 6c |").9dim |start, l|
|00000240| 69 6d 69 74 72 65 63 74 | 2c 20 73 6c 6f 70 72 65 |imitrect|, slopre|
|00000250| 63 74 2c 20 61 78 2c 20 | 72 65 73 75 6c 74 20 61 |ct, ax, |result a|
|00000260| 73 20 6d 65 6d 6f 72 79 | 42 6c 6f 63 6b 13 64 69 |s memory|Block.di|
|00000270| 6d 20 72 67 6e 20 61 73 | 20 51 44 52 65 67 69 6f |m rgn as| QDRegio|
|00000280| 6e 00 18 2f 2f 20 6d 61 | 6b 65 20 61 20 6e 65 77 |n..// ma|ke a new|
|00000290| 20 64 72 61 67 72 65 67 | 69 6f 6e 12 72 67 6e 20 | dragreg|ion.rgn |
|000002a0| 3d 20 6e 65 77 20 51 44 | 52 65 67 69 6f 6e 00 82 |= new QD|Region..|
|000002b0| 01 2f 2f 20 73 65 74 20 | 74 68 65 20 64 72 61 67 |.// set |the drag|
|000002c0| 72 65 67 69 6f 6e 27 73 | 20 64 69 6d 65 6e 73 69 |region's| dimensi|
|000002d0| 6f 6e 73 20 74 6f 20 74 | 68 65 20 72 65 63 74 63 |ons to t|he rectc|
|000002e0| 6f 6e 74 72 6f 6c 27 73 | 20 64 69 6d 65 6e 73 69 |ontrol's| dimensi|
|000002f0| 6f 6e 73 38 72 67 6e 2e | 53 65 74 52 65 63 74 20 |ons8rgn.|SetRect |
|00000300| 72 65 63 74 2e 6c 65 66 | 74 2c 20 72 65 63 74 2e |rect.lef|t, rect.|
|00000310| 74 6f 70 2c 20 72 65 63 | 74 2e 77 69 64 74 68 2c |top, rec|t.width,|
|00000320| 20 72 65 63 74 2e 68 65 | 69 67 68 74 00 28 2f 2f | rect.he|ight.(//|
|00000330| 20 73 65 74 20 74 68 65 | 20 64 72 61 67 72 65 67 | set the| dragreg|
|00000340| 69 6f 6e 27 73 20 62 6f | 72 64 65 72 20 74 68 69 |ion's bo|rder thi|
|00000350| 63 6b 6e 65 73 73 10 73 | 65 6c 65 63 74 20 63 61 |ckness.s|elect ca|
|00000360| 73 65 20 41 78 69 73 06 | 63 61 73 65 20 30 81 01 |se Axis.|case 0..|
|00000370| 72 67 6e 2e 42 6f 72 64 | 65 72 20 6d 61 78 28 31 |rgn.Bord|er max(1|
|00000380| 2c 64 72 61 67 42 6f 72 | 64 65 72 54 68 69 63 6b |,dragBor|derThick|
|00000390| 6e 65 73 73 29 2c 20 6d | 61 78 28 31 2c 64 72 61 |ness), m|ax(1,dra|
|000003a0| 67 42 6f 72 64 65 72 54 | 68 69 63 6b 6e 65 73 73 |gBorderT|hickness|
|000003b0| 29 06 63 61 73 65 20 31 | 28 72 67 6e 2e 42 6f 72 |).case 1|(rgn.Bor|
|000003c0| 64 65 72 20 6d 61 78 28 | 31 2c 64 72 61 67 42 6f |der max(|1,dragBo|
|000003d0| 72 64 65 72 54 68 69 63 | 6b 6e 65 73 73 29 2c 20 |rderThic|kness), |
|000003e0| 30 06 63 61 73 65 20 32 | 28 72 67 6e 2e 42 6f 72 |0.case 2|(rgn.Bor|
|000003f0| 64 65 72 20 30 2c 20 6d | 61 78 28 31 2c 64 72 61 |der 0, m|ax(1,dra|
|00000400| 67 42 6f 72 64 65 72 54 | 68 69 63 6b 6e 65 73 73 |gBorderT|hickness|
|00000410| 29 0a 65 6e 64 20 73 65 | 6c 65 63 74 00 2b 2f 2f |).end se|lect.+//|
|00000420| 20 70 75 74 20 74 68 65 | 20 41 78 69 73 20 76 61 | put the| Axis va|
|00000430| 72 69 61 62 6c 65 20 69 | 6e 74 6f 20 61 20 6d 65 |riable i|nto a me|
|00000440| 6d 6f 72 79 62 6c 6f 63 | 6b 16 61 78 20 3d 20 6e |morybloc|k.ax = n|
|00000450| 65 77 4d 65 6d 6f 72 79 | 42 6c 6f 63 6b 28 32 29 |ewMemory|Block(2)|
|00000460| 12 61 78 2e 73 68 6f 72 | 74 28 30 29 20 3d 20 61 |.ax.shor|t(0) = a|
|00000470| 78 69 73 00 29 2f 2f 20 | 67 65 74 20 74 68 65 20 |xis.)// |get the |
|00000480| 73 74 61 72 74 69 6e 67 | 20 70 6f 73 69 74 69 6f |starting| positio|
|00000490| 6e 20 6f 66 20 74 68 65 | 20 6d 6f 75 73 65 19 73 |n of the| mouse.s|
|000004a0| 74 61 72 74 20 3d 20 4e | 65 77 4d 65 6d 6f 72 79 |tart = N|ewMemory|
|000004b0| 42 6c 6f 63 6b 28 34 29 | 2e 73 74 61 72 74 2e 53 |Block(4)|.start.S|
|000004c0| 68 6f 72 74 28 30 29 20 | 3d 20 73 79 73 74 65 6d |hort(0) |= system|
|000004d0| 2e 6d 6f 75 73 65 79 20 | 2d 20 77 69 6e 64 6f 77 |.mousey |- window|
|000004e0| 28 30 29 2e 74 6f 70 2f | 73 74 61 72 74 2e 53 68 |(0).top/|start.Sh|
|000004f0| 6f 72 74 28 32 29 20 3d | 20 73 79 73 74 65 6d 2e |ort(2) =| system.|
|00000500| 6d 6f 75 73 65 78 20 2d | 20 77 69 6e 64 6f 77 28 |mousex -| window(|
|00000510| 30 29 2e 6c 65 66 74 00 | 8b 01 2f 2f 20 61 20 72 |0).left.|..// a r|
|00000520| 65 63 74 61 6e 67 6c 65 | 20 72 65 70 72 65 73 65 |ectangle| represe|
|00000530| 6e 74 69 6e 67 20 74 68 | 65 20 61 72 65 61 20 69 |nting th|e area i|
|00000540| 6e 20 77 68 69 63 68 20 | 74 68 65 20 64 72 61 67 |n which |the drag|
|00000550| 72 65 67 69 6f 6e 20 63 | 61 6e 20 62 65 20 64 72 |region c|an be dr|
|00000560| 61 67 67 65 64 1d 6c 69 | 6d 69 74 52 65 63 74 20 |agged.li|mitRect |
|00000570| 3d 20 4e 65 77 4d 65 6d | 6f 72 79 42 6c 6f 63 6b |= NewMem|oryBlock|
|00000580| 28 38 29 3b 6c 69 6d 69 | 74 52 65 63 74 2e 53 68 |(8);limi|tRect.Sh|
|00000590| 6f 72 74 28 30 29 20 3d | 20 6c 69 6d 69 74 54 6f |ort(0) =| limitTo|
|000005a0| 70 20 2b 20 28 73 74 61 | 72 74 2e 73 68 6f 72 74 |p + (sta|rt.short|
|000005b0| 28 30 29 20 2d 20 72 65 | 63 74 2e 74 6f 70 29 3d |(0) - re|ct.top)=|
|000005c0| 6c 69 6d 69 74 52 65 63 | 74 2e 53 68 6f 72 74 28 |limitRec|t.Short(|
|000005d0| 32 29 20 3d 20 6c 69 6d | 69 74 4c 65 66 74 20 2b |2) = lim|itLeft +|
|000005e0| 20 28 73 74 61 72 74 2e | 73 68 6f 72 74 28 32 29 | (start.|short(2)|
|000005f0| 20 2d 20 72 65 63 74 2e | 6c 65 66 74 29 8c 01 6c | - rect.|left)..l|
|00000600| 69 6d 69 74 52 65 63 74 | 2e 53 68 6f 72 74 28 34 |imitRect|.Short(4|
|00000610| 29 20 3d 20 6c 69 6d 69 | 74 42 6f 74 74 6f 6d 20 |) = limi|tBottom |
|00000620| 2d 20 28 72 65 63 74 2e | 74 6f 70 20 2b 20 72 65 |- (rect.|top + re|
|00000630| 63 74 2e 48 65 69 67 68 | 74 20 2d 20 73 74 61 72 |ct.Heigh|t - star|
|00000640| 74 2e 73 68 6f 72 74 28 | 30 29 29 8b 01 6c 69 6d |t.short(|0))..lim|
|00000650| 69 74 52 65 63 74 2e 53 | 68 6f 72 74 28 36 29 20 |itRect.S|hort(6) |
|00000660| 3d 20 6c 69 6d 69 74 52 | 69 67 68 74 20 2d 20 28 |= limitR|ight - (|
|00000670| 72 65 63 74 2e 6c 65 66 | 74 20 2b 20 72 65 63 74 |rect.lef|t + rect|
|00000680| 2e 57 69 64 74 68 20 2d | 20 73 74 61 72 74 2e 73 |.Width -| start.s|
|00000690| 68 6f 72 74 28 32 29 29 | 00 97 01 2f 2f 20 61 20 |hort(2))|...// a |
|000006a0| 72 65 63 74 61 6e 67 6c | 65 20 72 65 70 72 65 73 |rectangl|e repres|
|000006b0| 65 6e 74 69 6e 67 20 74 | 68 65 20 61 72 65 61 20 |enting t|he area |
|000006c0| 69 6e 20 77 68 69 63 68 | 20 74 68 65 20 6d 6f 75 |in which| the mou|
|000006d0| 73 65 20 63 61 6e 20 62 | 65 20 6d 6f 76 65 64 20 |se can b|e moved |
|000006e0| 28 74 68 65 20 77 68 6f | 6c 65 20 73 63 72 65 65 |(the who|le scree|
|000006f0| 6e 29 1c 73 6c 6f 70 52 | 65 63 74 20 3d 20 4e 65 |n).slopR|ect = Ne|
|00000700| 77 4d 65 6d 6f 72 79 42 | 6c 6f 63 6b 28 38 29 22 |wMemoryB|lock(8)"|
|00000710| 73 6c 6f 70 52 65 63 74 | 2e 53 68 6f 72 74 28 30 |slopRect|.Short(0|
|00000720| 29 20 3d 20 2d 77 69 6e | 64 6f 77 28 30 29 2e 74 |) = -win|dow(0).t|
|00000730| 6f 70 23 73 6c 6f 70 52 | 65 63 74 2e 53 68 6f 72 |op#slopR|ect.Shor|
|00000740| 74 28 32 29 20 3d 20 2d | 77 69 6e 64 6f 77 28 30 |t(2) = -|window(0|
|00000750| 29 2e 6c 65 66 74 34 73 | 6c 6f 70 52 65 63 74 2e |).left4s|lopRect.|
|00000760| 53 68 6f 72 74 28 34 29 | 20 3d 20 73 63 72 65 65 |Short(4)| = scree|
|00000770| 6e 28 30 29 2e 68 65 69 | 67 68 74 20 2d 20 77 69 |n(0).hei|ght - wi|
|00000780| 6e 64 6f 77 28 30 29 2e | 74 6f 70 34 73 6c 6f 70 |ndow(0).|top4slop|
|00000790| 52 65 63 74 2e 53 68 6f | 72 74 28 36 29 20 3d 20 |Rect.Sho|rt(6) = |
|000007a0| 73 63 72 65 65 6e 28 30 | 29 2e 77 69 64 74 68 20 |screen(0|).width |
|000007b0| 2d 20 77 69 6e 64 6f 77 | 28 30 29 2e 6c 65 66 74 |- window|(0).left|
|000007c0| 00 2f 2f 2f 20 6d 61 6b | 65 20 74 68 65 20 73 79 |./// mak|e the sy|
|000007d0| 73 74 65 6d 20 63 61 6c | 6c 20 74 6f 20 73 68 6f |stem cal|l to sho|
|000007e0| 77 20 74 68 65 20 67 72 | 61 79 20 72 65 67 69 6f |w the gr|ay regio|
|000007f0| 6e 1a 72 65 73 75 6c 74 | 20 3d 20 6e 65 77 4d 65 |n.result| = newMe|
|00000800| 6d 6f 72 79 42 6c 6f 63 | 6b 28 34 29 9a 01 72 65 |moryBloc|k(4)..re|
|00000810| 73 75 6c 74 2e 6c 6f 6e | 67 28 30 29 20 3d 20 64 |sult.lon|g(0) = d|
|00000820| 72 61 67 47 72 61 79 52 | 67 6e 28 72 67 6e 2e 72 |ragGrayR|gn(rgn.r|
|00000830| 65 67 69 6f 6e 50 74 72 | 2c 73 74 61 72 74 2e 4c |egionPtr|,start.L|
|00000840| 6f 6e 67 28 30 29 2c 6c | 69 6d 69 74 52 65 63 74 |ong(0),l|imitRect|
|00000850| 2c 73 6c 6f 70 52 65 63 | 74 2c 61 78 2e 73 68 6f |,slopRec|t,ax.sho|
|00000860| 72 74 28 30 29 2c 30 29 | 00 3d 69 66 20 72 65 73 |rt(0),0)|.=if res|
|00000870| 75 6c 74 2e 73 68 6f 72 | 74 28 30 29 20 3e 20 2d |ult.shor|t(0) > -|
|00000880| 33 32 37 36 38 20 61 6e | 64 20 72 65 73 75 6c 74 |32768 an|d result|
|00000890| 2e 73 68 6f 72 74 28 32 | 29 20 3e 20 2d 33 32 37 |.short(2|) > -327|
|000008a0| 36 38 20 74 68 65 6e 27 | 2f 2f 20 73 65 74 20 74 |68 then'|// set t|
|000008b0| 68 65 20 72 65 63 74 43 | 6f 6e 74 72 6f 6c 27 73 |he rectC|ontrol's|
|000008c0| 20 66 69 6e 61 6c 20 70 | 6f 73 69 74 69 6f 6e 25 | final p|osition%|
|000008d0| 72 65 63 74 2e 74 6f 70 | 20 3d 20 72 65 63 74 2e |rect.top| = rect.|
|000008e0| 74 6f 70 20 2b 20 72 65 | 73 75 6c 74 2e 73 68 6f |top + re|sult.sho|
|000008f0| 72 74 28 30 29 27 72 65 | 63 74 2e 6c 65 66 74 20 |rt(0)'re|ct.left |
|00000900| 3d 20 72 65 63 74 2e 6c | 65 66 74 20 2b 20 72 65 |= rect.l|eft + re|
|00000910| 73 75 6c 74 2e 73 68 6f | 72 74 28 32 29 06 65 6e |sult.sho|rt(2).en|
|00000920| 64 20 69 66 07 45 6e 64 | 20 53 75 62 00 00 00 00 |d if.End| Sub....|
|00000930| 00 | |. | |
+--------+-------------------------+-------------------------+--------+--------+